﻿using EPiServer.Core;
using EPiServer.DataAbstraction;
using PageTypeBuilder;
using SocialPack.Composer.PageTypes.Tabs;

namespace SocialPack.Composer.PageTypes.Facebook
{
    [PageType("aefccd6a-7ea3-40ef-8897-96b16d54f461", Filename = "/modules/socialpack/composer/functions/facebook/activityfeed.ascx", AvailableInEditMode = false, Name = "[Facebook] Activity Feed", Description = "Facebook Activity Feed")]
    public class ActivityFeed : FunctionBase
    {
        [PageTypeProperty(Tab = typeof(ComposerTab), Type = typeof(PropertyString))]
        public virtual string Site { get; set; }

        [PageTypeProperty(Tab = typeof(ComposerTab), DefaultValueType = DefaultValueType.Value, DefaultValue = "300")]
        public virtual int Width { get; set; }

        [PageTypeProperty(Tab = typeof(ComposerTab), DefaultValueType = DefaultValueType.Value, DefaultValue = "300")]
        public virtual int Height { get; set; }

        [PageTypeProperty(EditCaption = "Show header", Tab = typeof(ComposerTab))]
        public virtual bool ShowHeader { get; set; }

        [PageTypeProperty(EditCaption = "Show recommendations", Tab = typeof(ComposerTab))]
        public virtual bool ShowRecommendations { get; set; }

        [PageTypeProperty(EditCaption = "Max age", Tab = typeof(ComposerTab))]
        public virtual int MaxAge { get; set; }

        [PageTypeProperty(EditCaption = "Country code", Tab = typeof(ComposerTab), DefaultValue = "en_US", DefaultValueType = DefaultValueType.Value, Type = typeof(PropertyString))]
        public virtual string CountryCode { get; set; }
    }
}